xenmon: close qos_fd when finished with it in alloc_qos_data
authorIan Campbell <ian.campbell@citrix.com>
Wed, 10 Feb 2016 16:26:24 +0000 (16:26 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 11 Feb 2016 15:12:06 +0000 (15:12 +0000)
commit6d53f40fe19bacaac0cf0786e2fb6df4941426f7
tree2dc4558e8fed2625e34121ded7037c9f793f6726
parent15ee647c86ef21f4f61310d050bcdcb90dbbf318
xenmon: close qos_fd when finished with it in alloc_qos_data

Otherwise the fd is leaked. NB the mmap'd memory in the global
cpu_qos_data[n] is not affected by closing the underlying fd.

Compile tested only.

CID: 1055930

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/xenmon/xenbaked.c